package com.lingshi.shopping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName t_cart_goods
 */
@TableName(value ="t_cart_goods")
@Data
public class CartGoods implements Serializable {
    /**
     * 购物车商品id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    private Long goodId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 头图
     */
    private String headerPic;

    /**
     * 购买数量
     */
    private Integer num;

    /**
     * 属于的订单id
     */
    private String orderId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}